﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/OpenDelib.Master" CodeBehind="FicheCommission.aspx.vb" Inherits="OpenDelib.FicheCommission" %>
<%@ Register TagPrefix="asp" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>
<%@ Register TagPrefix="cc1" Namespace="Odyssee.WebControles" Assembly="Odyssee.WebControles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="toolbar" runat="server">   
    <hr/>
    <cc1:ToolBar ID="tbDossier" runat="server" CssClass="toolbar">
        <items>
            <cc1:ToolBarTextImageButton ID="btnActualiser" runat="server" Text="Actualiser" ImageWidth="20" ImageHorizontalOffset="4" ImageUrl="~/Images/refresh_white_20.png" />
            <cc1:ToolBarSeparator ID="tbSep1" runat="server" Offset="2" />
            <cc1:ToolBarTextImageButton ID="btnEnregister" runat="server" Text="Enregistrer" ImageWidth="20" ImageHorizontalOffset="4" ImageUrl="~/Images/save_white_20.png" />
            <cc1:ToolBarSeparator ID="tbSep2" runat="server" Offset="2" />
            <cc1:ToolBarTextImageMenuButton ID="btnTraitements" runat="server" Text="Traitements" ImageWidth="20" ImageHorizontalOffset="4" ImageUrl="~/Images/filter_settings_white_20.png">
                <Items>
                </Items>
            </cc1:ToolBarTextImageMenuButton>
        </items>
    </cc1:ToolBar> 
    <hr/>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
    <cc1:JQPopupPanel ID="pnlCommission" runat="server" PopupHeight="540" PopupWidth="700" Style="display: none;" Close="True" />

    <%--DIV DOSSIER--%>
    <div id="divDossier" class="bloc">
        <div class="divTitle">
            <asp:Label runat="server" Text="Commission" CssClass="labelDivTitle" />
        </div>
        
        <%--OBJET--%>
        <div class="divMiniTitle">
            <asp:Label runat="server" Text="Objet" CssClass="label" />
        </div>
        <asp:TextBox ID="txtObjet" runat="server" TextMode="SingleLine" CssClass="textbox" Style="width:calc(100% - 6px);" MaxLength="40" />
        
        <%--RESUME--%>
        <div class="divMiniTitle">
            <asp:Label runat="server" Text="Résumé" CssClass="label" />
        </div>
        <asp:TextBox ID="txtResume" runat="server" TextMode="MultiLine" CssClass="textbox" Height="100px" Style="width:calc(100% - 6px);" />

        <%--NUMERO--%>
        <div class="divMiniTitle">
            <asp:Label runat="server" Text="Numéro" CssClass="label" />
        </div>
        <asp:TextBox ID="txtCode" runat="server" CssClass="textbox" Style="width:calc(100% - 6px);" Enabled="false" />
    </div>

    <%--DIV CONTACTS--%>
    <div id="divContacts" runat="server" class="bloc">
        <div class="divTitle">
            <asp:Label runat="server" Text="Membres" CssClass="labelDivTitle" />
        </div>
        <cc1:AcroGridView ID="gvContacts" runat="server" AutoGenerateColumns="false" CssClass="grid" AllowPaging="true" PageSize="10" PagerStyle-CssClass="gridpager" AllowSorting="false" EmptyDataText="Aucun membre" EmptyDataRowStyle-HorizontalAlign="Center" ShowHeaderWhenEmpty="True" style="border-bottom: 2px solid black; border-top: 2px solid black; height: 24px; line-height:24px; padding:0px;">
            <Columns>
                <cc1:BoundField DataField="Cle" ReadOnly="True" SortExpression="Cle" HeaderText="N°" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Wrap="false" />
                <cc1:BoundField DataField="Qualite" ReadOnly="True" SortExpression="Qualite" HeaderText="Qualité" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Wrap="false" />
                <cc1:BoundField DataField="Nom" ReadOnly="True" SortExpression="Nom" HeaderText="Nom" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Wrap="false" />
                <cc1:BoundField DataField="Prenom" ReadOnly="True" SortExpression="Prenom" HeaderText="Prénom" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Wrap="false" />
                <cc1:BoundField DataField="Entreprise" ReadOnly="True" SortExpression="Entreprise" HeaderText="Entreprise" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Wrap="false" />
                <cc1:BoundField DataField="Fonction" ReadOnly="True" SortExpression="Fonction" HeaderText="Fonction" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Wrap="false" />
                <asp:TemplateField>
                    <ItemStyle HorizontalAlign="Right" />
                    <HeaderStyle HorizontalAlign="Right" />
                    <HeaderTemplate>
                        <cc1:JQPopupButton DoPostBack="true" Title="Ajouter un membre" PopupHeight="660" PopupWidth="660" PopupUrl="~/Tiers/SelectionContacts.aspx" ID="btnAjouterContact" runat="server" CssClass="btn" Text="Ajouter" DisplayMode="TextImageButton" PopupPanelID="pnlCommission" URLParameters="" ImageWidth="20" ImageHorizontalOffset="4" ImageUrl="~/Images/plus_white_20.png" ClientIDMode="Static" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnSupprimer" runat="server" AlternateText="Supprimer" CommandArgument="" CommandName="Supprimer" ImageUrl="~/Images/cancel_20.png" OnClientClick="return confirm('Êtes-vous sûr de vouloir enlever ce membre ?');" ToolTip="Supprimer" style="vertical-align:bottom;" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </cc1:AcroGridView>
    </div>

</asp:Content>
